package com.moorror.codegenvel.view.window.codegen.view;

import com.intellij.openapi.project.Project;
import com.moorror.codegenvel.tab.MRTabWrap;
import lombok.Getter;

import javax.swing.*;

/**
 * @Author jiyanghuang
 * @Date 2025/8/15 22:49
 */
public class TabWrapTabCodeGenTemplateKeyFields extends MRTabWrap {

    @Getter
    private TabCodeGenTemplateKeyFields tabCodeGenTemplateKeyFields;

    public TabWrapTabCodeGenTemplateKeyFields(Project project, int index, String title, JTabbedPane tabbedPane, TabCodeGenTemplateKeyFields tabCodeGenTemplateKeyFields) {
        super(project, index, title, tabbedPane, tabCodeGenTemplateKeyFields, true);
        this.tabCodeGenTemplateKeyFields = tabCodeGenTemplateKeyFields;
    }

    @Override
    public void fetchValue() {
        tabCodeGenTemplateKeyFields.fetchFromPanel();
    }
}
